package ib_model.src;
package src.PktFwd_Ifc;

//
// This module implements simple FDB for the entire switch
//
simple Pktfwd like PktFwd_Ifc
{
	parameters:
        int numPorts;      // number of switch ports
        bool is_cross_connected = default(false); // true indicates the current switch is cross_connected to it's upper level switch
        bool is_HD_mode = default(false);

  	// only used in a cross-connected network
        int cross_connected_upperlevel_numswitch = default(0);
        int switch_index = default(0); 
        int total_level_switch = default(0);
        
        @display("i=abstract/dispatcher");

    gates:
        inout pktfwd_port;
        input routing_info_port; // this is the port where the higher level switches receives direct messages about routing info from the first swicth in every level except the base level (level >=2)

}